# Uncomment this if you reference any of your controllers in activate
# require_dependency 'application'

class ConfigurationExtension < Radiant::Extension
  version "1.1"
  description "Adds a configuration page to allow admins to change Radiant settings."
  url "http://yourwebsite.com/configuration"
  
  define_routes do |map|
    map.connect 'admin/configuration/:action', :controller => 'admin/configuration'
  end
  
  def activate
    admin.tabs.add "Configuration", "/admin/configuration", :after => "Layouts", :visibility => [:admin]
  end
  
  def deactivate
    admin.tabs.remove "Configuration"
  end
  
end